package org.cs.mgr.before.service.impl;

import java.util.List;
import java.util.Map;

import org.cs.core.service.impl.BaseService;
import org.cs.mgr.before.dao.IGoodsSpecificationDao;
import org.cs.mgr.before.model.Goods_Specification;
import org.cs.mgr.before.service.IGoodsSpecificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("GoodsSpecificationService")
public class GoodsSpecificationService extends BaseService<Goods_Specification> implements IGoodsSpecificationService{
   
	//注入dao
	@Autowired
	IGoodsSpecificationDao igoods_Specificationdao;
	
	//通过goods的id,查询goods_specification表
	@Override
	public List<Map<String, Object>> getGoodsSpecification(String id) {
		List<Map<String, Object>> goods_SpecificationList = igoods_Specificationdao.getGoodsSpecification(id);	
		return goods_SpecificationList ;
	}

	
	//通過goods_specification的id查goods_specification表的一條記錄
	@Override
	public List<Map<String, Object>> getGoodsSpecificationOne(String id) {
		List<Map<String, Object>> goodsSpecificationOne = igoods_Specificationdao.getGoodsSpecificationOne(id);
		return goodsSpecificationOne;
	}
	

	
	
}
